package com.itouch.bracelet.activity;

import android.content.Context;
import android.content.SharedPreferences;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.itouch.bracelet.R;
import com.itouch.bracelet.cache.UserCache;
import com.itouch.bracelet.diseaseinfo.Constants;

public class ExitActivity extends BaseActivity implements
		OnClickListener {

	private TextView exit_enter;
	private TextView exit_cancle;

	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.exit_enter:
			UserCache.clearOauth(context);
			this.finish();
			break;
		case R.id.exit_cancle:

			this.finish();

			break;
		default:
			break;
		}
	}

	@Override
	protected int setContentViewById() {
		return R.layout.activity_exit;
	}

	@Override
	protected void initViews() {
		exit_enter = (TextView) findViewById(R.id.exit_enter);
		exit_enter.setOnClickListener(this);
		exit_cancle = (TextView) findViewById(R.id.exit_cancle);
		exit_cancle.setOnClickListener(this);
	}

	@Override
	protected void initData() {

	}

}
